package com.mdc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
	@RequestMapping("/hello")
	public String hello() throws Exception {
		throw new Exception("发生错误");
	}
	@RequestMapping("/hello2")
	public String hello2() throws Exception {
		throw new MyException("发生错误");
	}
}
